#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
    vector<int> drawLine(int length, int w, int x1, int x2, int y) {
        vector<int> res(length,0);
        for(int i = x1;i <= x2; ++i)
        {
            // (w / 32) * y 确定绘图int开始所在行,i / 32 确定所在列
            int idx = (w / 32) * y + i / 32;
            res[idx] |= 1 << (31 - i % 32);
        }
        return res;
    }
};
int main()
{
    return 0;
}